Data encryption
To encrypt data, make the database column type as varbinary (be careful of the size). Then, you need to add the details of the column inside the “encryption.config.json” file
For example:
{
"entityConfigurations": {
"com.ibonia.projecttest.data.models.classmanagement.Student": [
{
"fieldName": "birthdate",
"databaseColumn": "birthdate"
}
]
}
}
Finally, you need to put your secret key inside a file named “secret.key” in the project root.